this._discreteItem, 'value',
GObject.BindingFlags.SYNC_CREATE);
- this._sliderItemChangedId = this._sliderItem.connect('notify::value',
- () => (this._proxy.Brightness = this._sliderItem.value));
+ this._sliderItemChangedId = this._sliderItem.connect('notify::value', () => {
+ if (this._sliderItem.visible)
+ this._proxy.Brightness = this._sliderItem.value;
+ });
- this._discreteItemChangedId = this._discreteItem.connect('notify::value',
- () => (this._proxy.Brightness = this._discreteItem.value));
+ this._discreteItemChangedId = this._discreteItem.connect('notify::value', () => {
+ if (this._discreteItem.visible)
+ this._proxy.Brightness = this._discreteItem.value;
+ });
}
_sync() {